package com.common.test;


import com.common.utils.BaseUtils.MapUtil;


import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class test {

    public static void main(String[] args) {
        List<Item> items = Arrays.asList(new Item(1L, "bigboss1", 2), new Item(2L, "bigboss2", 3), new Item(3L, "bigboss3", 4),
                new Item(1L, "bigboss", 5)
        );

        Map<Long, List<Item>> longListMap = MapUtil.toMapLongList(items, "id");
        System.out.println(longListMap);
    }

}
